package com.woniu40.petai_user.mapper;

import com.woniu40.petai_user.entity.OrderItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderItemMapper {
    int deleteByPrimaryKey(Integer orderItemId);

    int insert(OrderItem record);

    OrderItem selectByPrimaryKey(Integer orderItemId);

    List<OrderItem> selectAll();

    List<OrderItem> selectByOrderId(Integer orderId);

    int updateByPrimaryKey(OrderItem record);

    int insertBatch(@Param("orderItems") List<OrderItem> orderItems);
}